<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>盒子模型</title>
	<style type="text/css">
		*{
			padding: 0px;
			margin: 0px;
		}
		.box1{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			border-top: 10px solid #000;
			border-bottom: 10px solid #000;
			/*margin-bottom: 10px;
			padding: 10px 20px 30px 40px;*/
			overflow: hidden;

		}
		.box2{
			width: 200px;
			height: 200px;
			background: blue url() 0 0 no-repeat;
		}

	</style>
</head>
<body>
	<div class="box1">盒子1盒子1盒子1盒子1盒子1盒子1盒子1盒子1盒子1盒子</div>
	<div class="box2">盒子2</div>
</body>
</html>